package daa.levelup.aCipher;

import javax.swing.*;

/**
 * Created by Capper on 16.02.14.
 */
public class Field extends JTextArea {

    public Field(int rows, int columns) {
        super(rows, columns);
        setLineWrap(true);
        setWrapStyleWord(true);
    }

    public JScrollPane getScrollPane() {
        return new JScrollPane(this, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
    }



}
